package chap5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class QueryPrize {
    //问价
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("1 T恤 2：球鞋  3：球拍");
        //
        String answer = "";
        while (!answer.equals("n")) {
            System.out.print("你的选择是：");
            int choice = in.nextInt();
            switch (choice) {
                case 1:
                    System.out.println("T恤 145元");
                    break;
                case 2:
                    System.out.println("球拍 490元");
                    break;
                case 3:
                    System.out.println("球鞋 900元");
                    break;
                default:
                    System.out.println("没有");
                    break;
            }
            System.out.println("你还要继续？");//输入n，不继续，其他任何字符继续
            answer = in.next();
//        if(!answer.equals("n")){
//
//        }
        }
    }
}
